var router = require("koa-router")();

router.get("/", async (ctx) => {
    //ctx.body = "用户首页";
    await ctx.render('admin/user/index');

}).get("/add", async (ctx) => {
    //ctx.body = "增加用户";
    await ctx.render('admin/user/add');

}).get("/edit", async (ctx) => {
    //ctx.body = "编辑用户";
    await ctx.render('admin/user/edit');

});

module.exports = router.routes();